//
//  Item.m
//  ToDo
//
//  Created by Zuey But on 10/04/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Item.h"


@implementation Item
@synthesize title;
@synthesize startTime;
@synthesize endTime;
@synthesize description;

- (id) initWithTitle:(NSString *)aTitle
{
    self = [super init];
    
    if (self) {
        // init variable
        self.title = aTitle;
    }
    return self;
}
-(NSDictionary *)getItemNSDictionary{
    NSMutableDictionary * nsdictionary = [[NSMutableDictionary alloc]init];
    [nsdictionary setObject:self.title forKey:@"title"];
    [nsdictionary setObject:self.startTime forKey:@"startTime"];
    [nsdictionary setObject:self.endTime forKey:@"endTime"];
    [nsdictionary setObject:self.description forKey:@"description"];
    [nsdictionary autorelease];
    return nsdictionary;
}
-(void)setItemWithNSDictionary:(NSDictionary *)
{
    
}

-(void)dealloc{

    [title release];
    [startTime release];
    [endTime release];
    [description release];
    
    [super dealloc];
}
@end
